package com.example.teamtribe.main.chat;

import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.widget.TextView;

import com.example.teamtribe.R;
import com.example.teamtribe.base.BaseFragment;

public class ChatFragment extends BaseFragment {

    @Override
    protected int setContentView() {
        return R.layout.fragment_chat;
    }

    @Override
    protected void onCreateView(View view) {
        ViewPager viewPager = view.findViewById(R.id.viewPager_chat);
        viewPager.setAdapter(new ChatPagerAdapter(getChildFragmentManager()));
        TabLayout tabLayout = view.findViewById(R.id.tabLayout_chat);
        tabLayout.setupWithViewPager(viewPager);
    }
}